﻿#pragma once
#include <deque>

using namespace std;

class SlidingWindow
{
public:
    SlidingWindow(const int* numbers, size_t size);
    ~SlidingWindow();
    void stepRight();
    void stepLeft();
    int maxValue();

private:
    deque<int> numDeque;
    int* numbers;
    size_t numberSize;
    int left;
    int right;
};